package com.atguigu.servicearticle.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
@author cyt
@create 2020-06-23 下午 4:35
*/
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "edu_articl")
public class EduArticl implements Serializable {
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @TableField(value = "is_deleted")
    private Byte isDeleted;

    @TableField(value = "title")
    private String title;

    @TableField(value = "path")
    private String path;

    @TableField(value = "cover")
    private String cover;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_TITLE = "title";

    public static final String COL_PATH = "path";

    public static final String COL_COVER = "cover";
}